package com.chen.loop;

public class DeadForDemo {
    public static void main(String[] args) {
        test1();
        test2();
        test3();
    }

    public static void test1() {
        for (; ; ) {
            System.out.println("hello world");
        }


    }

    public static void test2() {
        int i = 0;
        while (true) {
            System.out.println("hello world");
        }
    }


    public static void test3() {
        int i = 0;
        do {
            System.out.println("hello world");
        } while (true);
    }
}


